all:discovery registry

discovery:discovery.cc main.pb.cc
	g++ -o $@ $^ -std=c++17 -lgflags -letcd-cpp-api -lcpprest -lspdlog -lfmt -lbrpc -lssl -lcrypto -lprotobuf -lleveldb 
registry:registry.cc main.pb.cc
	g++ -o $@ $^ -std=c++17 -lgflags -letcd-cpp-api -lcpprest -lspdlog -lfmt -lbrpc -lssl -lcrypto -lprotobuf -lleveldb 

.PHONY:clean
clean:
	rm -rf discovery registry